<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>更新用户</title>
</head>
<body>

<form action="/user/update" method="post">
    <input type="hidden"  name="id" th:value="${user.id}">
    用户名字：<input type="text" name="name" placeholder="请输入名字" th:value="${user.name}">
    用户年龄：<input type="text" name="age" placeholder="请输入年龄" th:value="${user.age}">
    <input type="submit" value="更新用户">
</form>


</body>
</html>